package models;

import play.data.validation.Constraints;
import play.db.ebean.Model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "sys_user")
public class User {
    public static Model.Finder<Integer, User> finder =
            new Model.Finder<Integer, User>("default", Integer.class, User.class);
    @Id
    public Integer id;

    public String company;
    public String username;
    public String telephone;
    public String mail;
    public String remark;
    public Date operateTime;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", company='" + company + '\'' +
                ", username='" + username + '\'' +
                ", telephone='" + telephone + '\'' +
                ", mail='" + mail + '\'' +
                ", remark='" + remark + '\'' +
                ", operateTime=" + operateTime +
                '}';
    }
}
